<%--
  Created by IntelliJ IDEA.
  User: 鑫
  Date: 2022/3/30
  Time: 15:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="script/jquery-1.7.2.js"></script>
    <script type="text/javascript">
            $(function () {
                $("#but001").click(function () {
                      $.ajax({
                          url:"http://localhost:8080/Ajax/ajaxServlet",
                          data:{action:"regist"},
                          type:"POST",
                          success:function (data) {
                              alert(data);
                          },
                          dataType:"json"
                      });
                });
            });
    </script>
</head>
<body>
<input id="text01" type="text">
<button id="but001"></button>
</body>
</html>
